package com.wangsh.webforward.common.util;

import com.alibaba.fastjson.JSON;

/**
 * json的操作
 * 
 * @author Wangsh
 */
public class JsonUtil
{
	/**
	 * 判断是否为json
	 */
	public boolean isJson(String response)
	{

		boolean is = true;
		try
		{
			JSON.parseObject(response);
		} catch (Exception e)
		{
			// 报异常代表不是json
			is = false;
		}
		return is;
	}
}
